package com.sinkdream.cms.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class News {
    private Integer newsId;

    private Boolean newsType;

    private String newsCatalog;

    private Boolean newsTop;

    private String newsAuthor;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date newsTime;

    private Boolean newsIsBanner;

    private String newsBannerPosition;

    private Integer newsClicked;

    private Integer newsZan;

    private String newsTitle;

    private String newsContent;

    public Integer getNewsId() {
        return newsId;
    }

    public void setNewsId(Integer newsId) {
        this.newsId = newsId;
    }

    public Boolean getNewsType() {
        return newsType;
    }

    public void setNewsType(Boolean newsType) {
        this.newsType = newsType;
    }

    public String getNewsCatalog() {
        return newsCatalog;
    }

    public void setNewsCatalog(String newsCatalog) {
        this.newsCatalog = newsCatalog == null ? null : newsCatalog.trim();
    }

    public Boolean getNewsTop() {
        return newsTop;
    }

    public void setNewsTop(Boolean newsTop) {
        this.newsTop = newsTop;
    }

    public String getNewsAuthor() {
        return newsAuthor;
    }

    public void setNewsAuthor(String newsAuthor) {
        this.newsAuthor = newsAuthor;
    }

    public Date getNewsTime() {
        return newsTime;
    }

    public void setNewsTime(Date newsTime) {
        this.newsTime = newsTime;
    }

    public Boolean getNewsIsBanner() {
        return newsIsBanner;
    }

    public void setNewsIsBanner(Boolean newsIsBanner) {
        this.newsIsBanner = newsIsBanner;
    }

    public String getNewsBannerPosition() {
        return newsBannerPosition;
    }

    public void setNewsBannerPosition(String newsBannerPosition) {
        this.newsBannerPosition = newsBannerPosition == null ? null : newsBannerPosition.trim();
    }

    public Integer getNewsClicked() {
        return newsClicked;
    }

    public void setNewsClicked(Integer newsClicked) {
        this.newsClicked = newsClicked;
    }

    public Integer getNewsZan() {
        return newsZan;
    }

    public void setNewsZan(Integer newsZan) {
        this.newsZan = newsZan;
    }

    public String getNewsTitle() {
        return newsTitle;
    }

    public void setNewsTitle(String newsTitle) {
        this.newsTitle = newsTitle == null ? null : newsTitle.trim();
    }

    public String getNewsContent() {
        return newsContent;
    }

    public void setNewsContent(String newsContent) {
        this.newsContent = newsContent == null ? null : newsContent.trim();
    }
}
